﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Common.AssistClass
{
    public static class HashPassword
    {
        public static String MD5Password(String PlaintextPassword)
        {
            string Salt = "junCaiSOft@^!~";
            string encodepassword = BitConverter.ToString(
                    MD5.Create().ComputeHash(Encoding.ASCII.GetBytes(PlaintextPassword + Salt))
                ).Replace("-","");
            return encodepassword;
        }
        
    }
}
